package _1GongChang;

import _1GongChang.factory.EasyFactory;

/**
 * @ClientTest: 客户端调用测试
 * @author: ZBoHang
 * @time: 2021/9/1 15:43
 */
class ClientTest {

    public static void main(String[] args) throws Exception {

        Operation add = EasyFactory.createOperation("+");

        if (add != null) {
            System.out.println(add.getResult(1,2));
            return;
        }
        System.out.println("请输入正确的运算符号");
    }
}
